package com.hm.ibsm.def.enums;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @author shishun.wang
 * @date 2017年3月7日 上午2:35:55
 * @version 1.0
 * @describe
 */
public enum DictTypeEnums {

	/** 系统运行环境信息 */
	SYSTEM_INFO(1, "系统信息"),

	/** 系统公告 */
	SYSTEM_NOTICE(2, "系统公告");

	private int status;

	private String desc;

	private DictTypeEnums(int status, String desc) {
		this.status = status;
		this.desc = desc;
	}

	public String desc() {
		return this.desc;
	}

	public int status() {
		return this.status;
	}

	public static List<Map<String, Object>> load() {
		List<Map<String, Object>> content = new ArrayList<Map<String, Object>>();
		for (DictTypeEnums type : values()) {
			Map<String, Object> obj = new HashMap<String, Object>();
			obj.put("status", type);
			obj.put("desc", type.desc());
			content.add(obj);
		}
		return content;
	}
}
